<#assign bodyclass = "change-list">

<#include "_header.ftl">

<div id="content-main">

<ul class="object-tools">
	<li><a href="./add/" class="addlink">Create new ${entity.verboseName}</a></li>
	<#if list_tools??><#list list_tools as tool>
		<li><a href="./?tool=${tool.class.name!''}&${query_string}">${tool.description!''}</a></li>
	</#list></#if>
</ul>
<div class="module" id="changelist">
<table cellspacing="0">

	<thead>
		<tr>
			<#list header_list as header>
				<th>${header}</th>
			</#list>
		</tr>
	</thead>

	<tbody>
		<#list object_list as object>
			<tr class="row${object}_index % 2 + 1}">
				<#list property_list as property>
					<#assign value=object>
					<#assign prop=property?split(":")?last>
					<#list prop?split(".") as x>
						<#assign value=value[x]!''>
					</#list>
					<td>
						<#if link_property = prop>
							<#if (object[key_property]!'')?is_number>
								<a href="./${object[key_property]?c}/">
							<#else>
								<a href="./${object[key_property]}/">
							</#if>
						</#if>
						<#if (value!'')?is_sequence>
						<#elseif (value!'')?is_date>
							${value?date}
						<#else>
							${value!""}
						</#if>
						<#if link_property = prop>
							</a>
						</#if>
					</td>
				</#list>
			</tr>
		</#list>
	</tbody>
</table>
<p class="paginator">
${paginator.asTable()}
</p>
</div>
</div>
<br class="clear" />
<#include "_footer.ftl">

